package com.hdu.dwh.pojos.source_access_pojos;

import java.time.LocalDateTime;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.NonNull;
import lombok.RequiredArgsConstructor;

@Data
@TableName("table_relation")
@RequiredArgsConstructor
@AllArgsConstructor
@NoArgsConstructor
public class TableRelation {
    @TableId(type = IdType.AUTO)
    private Integer id;

    @NonNull
    private Long sourceTableId;
    @NonNull
    private String sourceTableName;

    @NonNull
    private Long targetTableId;
    @NonNull
    private String targetTableName;

    private LocalDateTime createdAt;
    private LocalDateTime updatedAt;
}
